class Solution(object):
    def fizzBuzz(self, n):
        """
        :type n: int
        :rtype: List[str]
        """
        res = [str(i) for i in range(1, n + 1)]
        for i, s in enumerate(res):
            if (i + 1) % 3 == 0 and (i + 1) % 5 == 0:
                res[i] = 'FizzBuzz'
            else:
                if (i + 1) % 3 == 0:
                    res[i] = 'Fizz'
                if (i + 1) % 5 == 0:
                    res[i] = 'Buzz'

        return res
        
s = Solution()
print(s.fizzBuzz(15))

